home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CStrikeClusterBomb.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  2.2 KB  |  83 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Audio.*;
  4.    import Local.Game.World.*;
  5.    import Local.Game.World.Map.*;
  6.    import Local.Game.World.Map.Cell.*;
  7.    import Local.Math.*;
  8.    import STC9.System.*;
  9.    import flash.display.*;
  10.    import flash.events.*;
  11.    import flash.geom.*;
  12.    
  13.    public class CStrikeClusterBomb extends CStrike
  14.    {
  15.        
  16.       
  17.       public var mWaitCount:int;
  18.       
  19.       public var mTargetPosition:CPosition;
  20.       
  21.       public function CStrikeClusterBomb(param1:*)
  22.       {
  23.          if(true)
  24.          {
  25.             super(new CPosition());
  26.             if(true)
  27.             {
  28.                mType = "strikeclusterbomb";
  29.                if(true)
  30.                {
  31.                   Process = Process_Normal;
  32.                   if(true)
  33.                   {
  34.                      mTargetPosition = (param1 is CPosition ? param1 : param1.mPosition).Clone();
  35.                      if(true)
  36.                      {
  37.                         mWaitCount = SECONDS * 2;
  38.                      }
  39.                      AddSound("jet",Jet_By,1000);
  40.                   }
  41.                   GetSound(PlaySound("jet",{
  42.                      "mVolume":1,
  43.                      "mPan":0
  44.                   })).AddFilter(new CSoundFilter([{
  45.                      "pan":-0.5,
  46.                      "time":0
  47.                   },{
  48.                      "pan":0,
  49.                      "time":2000
  50.                   },{
  51.                      "pan":1,
  52.                      "time":11000
  53.                   }]));
  54.                }
  55.                IncrementFired();
  56.             }
  57.             mShowOnMap = true;
  58.          }
  59.       }
  60.       
  61.       public function Process_Normal() : void
  62.       {
  63.          var _loc1_:*;
  64.          ┬º┬ºpush((_loc1_ = ┬º┬ºfindproperty(mWaitCount)).mWaitCount);
  65.          if(true)
  66.          {
  67.             var _loc2_:*;
  68.             ┬º┬ºpush(_loc2_ = ┬º┬ºpop() - 1);
  69.             if(true)
  70.             {
  71.                _loc1_.mWaitCount = _loc2_;
  72.             }
  73.          }
  74.          if(┬º┬ºpop() < 0)
  75.          {
  76.             DispatchDispose();
  77.             AddThing(new CShotClusterBomb(mTargetPosition));
  78.          }
  79.          Process_Children();
  80.       }
  81.    }
  82. }
  83.